package com.example.demo.api;

import com.example.demo.util.R;
import com.example.demo.util.ResultUtil;
import io.swagger.annotations.Api;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import springfox.documentation.annotations.ApiIgnore;


@Controller
@ApiIgnore
@Api(tags = "验证签名模块")
@RequestMapping(value="/api")
public class ApiController  {

	@RequestMapping("errorToken")
	@ApiIgnore
    @ResponseBody
     public ResponseEntity<R<String>> errorToken() {
		System.out.println("sign不正确");
		return ResultUtil.failMsg("sign不正确", HttpStatus.SEE_OTHER);
        }
	
	@RequestMapping("errorTokenTime")
	@ApiIgnore
    @ResponseBody
     public ResponseEntity<R<String>> errorTokenTime() {
		return ResultUtil.failMsg("时间戳超时", HttpStatus.SEE_OTHER);
        }
	

}
